<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of RegionController
 *
 * @author Sebastian
 */
class RegionController  extends MR_Controller_Action
{
    public function init()
    {
        parent::init();
    }

    public function optionprovincesAction()
    {
        $this->disableLayout();
        if( isset($_GET['country']) )
            $this->view->provinces = MD_Province::getFrom($_GET['country']);
    }

    public function autocitiesAction()
    {
        $this->disableLayout();
        if( isset($_GET['province']) )
            $this->view->cities = MD_City::getFrom($_GET['province']);
    }
}
?>
